<?php


namespace app\appa\model;


use think\Model;

class AddressModel extends Model
{
    protected $name ='address';

    public function getSwitchAttr($val)
    {
        $switch = [0=>'不是默认地址',1=>'是默认地址'];
        return $switch[$val];
    }
}